* w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
authorJuanma Barranquero <lekktu@gmail.com>
Sun, 4 Jan 2009 11:30:13 +0000 (11:30 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Sun, 4 Jan 2009 11:30:13 +0000 (11:30 +0000)
commit1fd1af42b324ef65046b97c596da8be2fadd004c
tree1d54905d1007df17fa62ca6e6286b937d283a256
parent1ad2cd1b6d8db6d8376d469eb87fefbbe5b006a2
* w32.c: Use 64-bit arithmetic to do FILETIME conversions.  (Bug#1766)
  (utc_base): Declare as ULONGLONG, not long double.
  (convert_time_raw): Delete.
  (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
  (initialize_utc_base): New function.
  (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
  (convert_from_time_t): Use initialize_utc_base; compute result with
  64-bit arithmetic.
  (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
src/ChangeLog
src/w32.c